package com.smfx.yxt.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.smfx.yxt.daoSqlserver.OrganizeGroupMapper;
import com.smfx.yxt.model.OrganizeGroup;
import com.smfx.yxt.page.Page;
import com.smfx.yxt.service.IOrganizeGroupService;

@Service("organizeGroupService")
public class OrganizeGroupServiceImpl implements IOrganizeGroupService {

	@Autowired
	private OrganizeGroupMapper organizeGroupMapper;
	
	@Override
	public int insertSelective(OrganizeGroup record) {
		return organizeGroupMapper.insertSelective(record);
	}

	@Override
	public OrganizeGroup selectByPrimaryKey(Integer id) {
		return organizeGroupMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(OrganizeGroup record) {
		return organizeGroupMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public List<OrganizeGroup> selectListByPage(Page<OrganizeGroup> page) {
		return organizeGroupMapper.selectListByPage(page);
	}

	@Override
	public int isLeaderGroup(Integer teacherId) {
		return organizeGroupMapper.isLeaderGroup(teacherId);
	}

	@Override
	public int isCourseApprovalGroup(Integer teacherId) {
		return organizeGroupMapper.isCourseApprovalGroup(teacherId);
	}

}
